package club.dataresources.mapper;

import club.dataresources.entity.Barber;
import club.dataresources.entity.BarberExample;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface BarberMapper {
    long countByExample(BarberExample example);

    int deleteByExample(BarberExample example);

    int deleteByPrimaryKey(Integer barberId);

    int insert(Barber record);

    int insertSelective(Barber record);

    Page<Barber> selectByExample(BarberExample example);

    Barber selectByPrimaryKey(Integer barberId);

    int updateByExampleSelective(@Param("record") Barber record, @Param("example") BarberExample example);

    int updateByExample(@Param("record") Barber record, @Param("example") BarberExample example);

    int updateByPrimaryKeySelective(Barber record);

    int updateByPrimaryKey(Barber record);
}